package declarations

import "fmt"

func Decl() {
	// var a 错误
	var b int
	var c int = 10
	fmt.Println(b)
	fmt.Println(c)

	var (
		d int
		e string = "hello"
	)

	fmt.Println(d, e)

	var f = 20
	fmt.Println(f)

	name := "Allen"
	name, age := "Luffy", 27

	fmt.Println(name, age)

	//name, age := "Zoro", 28 // not ok
	name, age = "Zoro", 28 // ok
	fmt.Println(name, age)
}
